Integrand size = 28, antiderivative size = 27 \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=\frac {a A \text {arctanh}(\cos (c+d x))}{d}-\frac {a A \cos (c+d x)}{d} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4047, 2672, 327, 212} \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=\frac {a A \text {arctanh}(\cos (c+d x))}{d}-\frac {a A \cos (c+d x)}{d} \]
[In]
[Out]
Rule 212
Rule 327
Rule 2672
Rule 4047
Rubi steps \begin{align*} \text {integral}& = -((a A) \int \cos (c+d x) \cot (c+d x) \, dx) \\ & = \frac {(a A) \text {Subst}\left (\int \frac {x^2}{1-x^2} \, dx,x,\cos (c+d x)\right )}{d} \\ & = -\frac {a A \cos (c+d x)}{d}+\frac {(a A) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cos (c+d x)\right )}{d} \\ & = \frac {a A \text {arctanh}(\cos (c+d x))}{d}-\frac {a A \cos (c+d x)}{d} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.70 \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=-a A \left (\frac {\cos (c+d x)}{d}-\frac {\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )}{d}+\frac {\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )}{d}\right ) \]
[In]
[Out]
Time = 0.30 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.96
method | result | size |
parallelrisch | \(-\frac {A a \left (\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1+\cos \left (d x +c \right )\right )}{d}\) | \(26\) |
parts | \(-\frac {a A \cos \left (d x +c \right )}{d}+\frac {A a \ln \left (\csc \left (d x +c \right )+\cot \left (d x +c \right )\right )}{d}\) | \(35\) |
derivativedivides | \(\frac {-A a \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-A a \cos \left (d x +c \right )}{d}\) | \(36\) |
default | \(\frac {-A a \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right )-A a \cos \left (d x +c \right )}{d}\) | \(36\) |
norman | \(\frac {2 A a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{d \left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )}-\frac {A a \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}\) | \(52\) |
risch | \(-\frac {A a \,{\mathrm e}^{i \left (d x +c \right )}}{2 d}-\frac {A a \,{\mathrm e}^{-i \left (d x +c \right )}}{2 d}+\frac {A a \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{d}-\frac {A a \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{d}\) | \(71\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.67 \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=-\frac {2 \, A a \cos \left (d x + c\right ) - A a \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + A a \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right )}{2 \, d} \]
[In]
[Out]
Time = 6.25 (sec) , antiderivative size = 75, normalized size of antiderivative = 2.78 \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=A a \left (\begin {cases} - \frac {\cot {\left (c + d x \right )}}{d \csc {\left (c + d x \right )}} & \text {for}\: d \neq 0 \\\frac {x}{\csc {\left (c \right )}} & \text {otherwise} \end {cases}\right ) - A a \left (\begin {cases} \frac {x \cot {\left (c \right )} \csc {\left (c \right )}}{\cot {\left (c \right )} + \csc {\left (c \right )}} + \frac {x \csc ^{2}{\left (c \right )}}{\cot {\left (c \right )} + \csc {\left (c \right )}} & \text {for}\: d = 0 \\- \frac {\log {\left (\cot {\left (c + d x \right )} + \csc {\left (c + d x \right )} \right )}}{d} & \text {otherwise} \end {cases}\right ) \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.22 \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=-\frac {A a \cos \left (d x + c\right ) - A a \log \left (\cot \left (d x + c\right ) + \csc \left (d x + c\right )\right )}{d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 60 vs. \(2 (27) = 54\).
Time = 0.27 (sec) , antiderivative size = 60, normalized size of antiderivative = 2.22 \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=-\frac {A a \log \left (\frac {{\left | -\cos \left (d x + c\right ) + 1 \right |}}{{\left | \cos \left (d x + c\right ) + 1 \right |}}\right ) - \frac {4 \, A a}{\frac {\cos \left (d x + c\right ) - 1}{\cos \left (d x + c\right ) + 1} - 1}}{2 \, d} \]
[In]
[Out]
Time = 18.68 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.48 \[ \int (a+a \csc (c+d x)) (A-A \csc (c+d x)) \sin (c+d x) \, dx=-\frac {A\,a\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {2\,A\,a}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )} \]
[In]
[Out]